package com.huang.core.widget.recyclerview.decoration

import android.graphics.Color
import android.view.View
import com.huang.core.widget.recyclerview.decoration.base.Y_Divider
import com.huang.core.widget.recyclerview.decoration.base.Y_DividerBuilder
import com.huang.core.widget.recyclerview.decoration.base.Y_ItemDecoration

class FlowMarginDecoration(
        private val widthSpec: Float,
        private val heightSpec: Float
) : Y_ItemDecoration() {
    override fun getDivider(itemPosition: Int, itemCount: Int, view:View): Y_Divider {
        return Y_DividerBuilder()
                .setLeftSideLine(true, Color.TRANSPARENT, widthSpec, 0f, 0f)
                .setBottomSideLine(true, Color.TRANSPARENT, heightSpec, 0f, 0f)
                .create()
    }
}
